package com.basker.pisces.auth.service.pojo;

import javax.validation.constraints.NotNull;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * 更改密码的请求
 *
 * @author hangwen
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ChangePasswordRequest {

    @NotNull(message = "userId is required")
    private Long userId;

    @NotNull(message = "oldPassword is required")
    private String oldPassword;

    @NotNull(message = "newPassword is required")
    private String newPassword;

}
